﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Checkcart.aspx.cs" Inherits="BookStore.Checkcart" MasterPageFile="~/Home.Master" Title="Checkcart" %>
<%@ Register src="Controls/info.ascx" tagname="info" tagprefix="uc1" %>
<asp:Content ID="content" runat="server" ContentPlaceHolderID="cphhome" >

 <div class="breadcrumb">
        <a href="Default.aspx">Home</a>
         &raquo; <a href="Checkcart.aspx">Shopping Cart</a>
      </div>
  <h1>Shopping Cart
      </h1>
    <div class="cart-info">
      <div class="shop-cart">    
      <table><tr><td style="width:48px;text-align:center;">Code</td><td class="name">Name</td><td style="width:120px;text-align:center;">Quantity</td><td  style="width:120px;text-align:center;">Price</td> <td style="width:120px;text-align:center;">Total</td></tr></table>
          <table>
             <tbody>
       <tr>  
      <asp:DataList ID="DataList1" runat="server" 
               onselectedindexchanged="DataList1_SelectedIndexChanged" 
               onitemdatabound="DataList1_ItemDataBound"> 
      <ItemTemplate>
            <div class="image">  
             <asp:Label ID="lblid" runat="server" Text='<%# Eval("productID")%>'></asp:Label>
              </div>
                  
           <td style="width:250px; text-align:center;" ><asp:Label ID="Label1" runat="server" Text='<%# Eval("productName")%>'></asp:Label></td>
            <td style="width:120px; text-align:center;">
            
               <asp:TextBox ID="txtremove" runat="server" Text='<%# Eval("number") %>'></asp:TextBox>
              
              <div class="wrapper mt5">
              <asp:LinkButton ID="LinkButton2" runat="server"  
                      CommandArgument='<%# Eval("productId") %>' onclick="LinkButton2_Click">   
                  <img src="catalog/view/theme/theme006/image/update.png" alt="Update" title="Update" />
                  
                  </asp:LinkButton>
              &nbsp;<a href="#"><asp:LinkButton ID="LinkButton1" runat="server"  CommandArgument='<%# Eval("productId") %>'
                      onclick="LinkButton1_Click"><img src="catalog/view/theme/theme006/image/remove.png" alt="Remove" title="Remove" /></asp:LinkButton></a>
              </div>
              </td>
            <td style="width:120px; text-align:center; ">
                <asp:Label ID="Label3" runat="server" Text='<%# Eval("price", "{0:C}") %>'></asp:Label></td>
            <td  style="width:120px; text-align:center" style="border-right:0;">
                <asp:Label ID="lbltotal" runat="server" Text='<%# Eval("Total", "{0:C}") %>'></asp:Label>
                <asp:TextBox ID="txttong" runat="server" Text='<%# Eval("Total")%>' Enabled = "false"></asp:TextBox>
               </td>
      </ItemTemplate>
      </asp:DataList>
            </tr>
               </tbody>
          </table> 
          </div>
    </div>

  
  <div class="content shop-cart-content">
   
    
    <asp:Panel ID="pnlcheck" runat="server"> 
    </asp:Panel>
  </div>
  <div class="cart-bottom">
    <div class="cart-total">
    <table id="total">
      <%--      <tr class="row-table-1">
        <td class="right cart-total-name " ><b>Quantity:</b></td>
        <td class="right cart-total1 ">
            <asp:Label ID="lblquantity" runat="server" ></asp:Label></td>
      </tr>--%>
            <tr class="row-table-2">
        <td class="right cart-total-name last" ><b>Total:</b></td>
        <td class="right cart-total1 last"><asp:Label ID="lbltongtien" runat="server"></asp:Label></td>
      </tr>
          </table>
  </div>
    <div class="buttons">
    <div class="right"><a><span style="text-align:center;">
       <asp:LinkButton ID="tmbcheck" CssClass="button" Width="70px" ForeColor="White" 
            Height="23px" runat="server" onclick="tmbcheck_Click" >Checkout  &nbsp;&nbsp;&nbsp;&nbsp; </asp:LinkButton></span></a></div>
    <div class="center"><a href="Default.aspx" class="button"><span>Continue Shopping</span></a>
    
        </div>
       
  </div>
   <asp:Panel ID="Panel1" runat="server">
        <table style="margin-left:40px;" cellpadding="0" cellspacing="0" class="style1">
        <tr>
            <td class="style2">
                Username:</td>
            <td class="style3">
                <asp:TextBox ID="TextBox4" runat="server" Width="225px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Email:</td>
            <td class="style3">
                <asp:TextBox ID="TextBox1" runat="server" Width="224px"></asp:TextBox>
                <asp:Label ID="lblID" runat="server"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Phone:</td>
            <td class="style3">
                <asp:TextBox ID="TextBox2" runat="server" Width="225px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Adrdress:</td>
            <td class="style3">
                <asp:TextBox ID="TextBox3" runat="server" Width="223px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Payment:</td>
            <td class="style3">
                <asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="225px">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Total:</td>
            <td class="style3">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Buy" 
                    Width="104px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
        </asp:Panel>
  </div>
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="head">

    <style type="text/css">
        .style1
        {
            width: 68%;
            height: 255px;
        }
        .style2
        {
            width: 119px;
        }
        .style3
        {
            width: 307px;
        }
    </style>

</asp:Content>

    


